package com.sky.proxy.cglibProxy;

/**
 * @author : wushikai
 * <p>
 * date : 2022-03-09
 * 这个实现类只是实现自己的东西, 其他什么都没干;
 */
class TerminalServiceImpl {

    Terminal findByTerminalName(String name) {
        String sql = "select  *  from  t_terminal tt where tt.name = " + name;
        System.out.println(  "findByTerminalName ==>  " + sql);
        return new Terminal( 1,   name );
    }

    Terminal findByTerminalId(Integer id ) {

        String sql = "select  *  from  t_terminal tt where tt.id = " + id;
        System.out.println(  "findByTerminalId ==>  " + sql);
        return new Terminal( id,   "华智融" );
    }

}

